package com.hgyc.mom.eam.job;

import com.hgyc.mom.eam.service.EamCheckMaintainPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.quartz.*;

/**
 * 生成点检、保养任务单据定时任务
 * @author fwj
 * @since 2025-08-15
 */
@Component
public class CheckMaintainPlanJob implements Job {

    @Autowired
    private EamCheckMaintainPlanService planService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        Long planId = context.getMergedJobDataMap().getLong("planId");
        planService.excuteCreatePlan(planId);
    }

}
